

import Brid.BridList;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Demo {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new
                ClassPathXmlApplicationContext("applicationContext.xml");
        BridList b1 = (BridList) applicationContext.getBean("BridList");
        BridList b2 = (BridList) applicationContext.getBean("BridList");
        b1.fly();
        b2.fly();

    }
}
